Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save metadata as part of closing mbtiles #33

Merged
merged 2 commits into from
Nov 23, 2024
Merged

Save metadata as part of closing mbtiles #33

merged 2 commits into from
Nov 23, 2024

Conversation

iandees
Copy link
Member

@iandees iandees commented Nov 23, 2024

In #27, we added spatial metadata like bounds and center, but it got added to the mbtiles database using the outer db reference rather than the txn that stays open throughout the mbtiles creation process. This resulted in the locked database error reported in #32.

To solve this, the spatial metadata gets added to the MbtilesMetdata and then the metadata gets added as part of the Close() operation on the mbtiles output.

This also adds arguments that allow the user to specify mbtiles dataset name and format, as required by the mbtiles spec.

@iandees iandees merged commit eeccc36 into master Nov 23, 2024
1 check passed
@iandees iandees deleted the fix-metadata branch November 23, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant